# -*- coding : utf-8 -*-
# author : Big Cat
# time : 2021/7/20:22:13
# file : loginpage.py
from base.basepage import BasePage
from pagelocation.login_page_locs import LoginPageLocs as LOCS

class LoginPage(BasePage):


    def login(self,username,password):
        print(self.driver,'login+++++')
        self.driver.get(LOCS.url)
        self.sleep(2)
        self.input(loc=LOCS.el_username,value=username)
        self.input(loc=LOCS.el_password,value=password)
        self.sleep(1)
        self.click(loc=LOCS.el_login)
        self.sleep(5)




